﻿using System.ComponentModel.DataAnnotations;

namespace PrivateTracker.Service.Application;
/// <summary>
/// 登录输入参数
/// </summary>
public class LoginInput
{
    /// <summary>
    /// 用户名或邮箱
    /// </summary>
    /// <example>testUser</example>
    [Display(Name = "用户名或邮箱"), Required(ErrorMessage = "{0}不能为空")]
    public string AccountOrEmail { get; set; }

    /// <summary>
    /// 密码
    /// </summary>
    /// <example>123456</example>
    [Display(Name = "密码"), Required(ErrorMessage = "{0}不能为空"), MinLength(5, ErrorMessage = "{0}不能少于5位字符")]
    public string Password { get; set; }
}